package com.jlu.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "demo")//可以拿到前缀为demo的配置项
public class DemoProperties {
  private String sayWhat;
  private String toWho;

  public String getSayWhat() {
    return sayWhat;
  }

  public void setSayWhat(String sayWhat) {
    this.sayWhat = sayWhat;
  }

  public String getToWho() {
    return toWho;
  }

  public void setToWho(String toWho) {
    this.toWho = toWho;
  }
}